
// import * as types from '../action-types'
// import {Store} from '../types'
// import {Action} from '../actions/counter'
// let initState:Store = {
//   number: 0
// }
// export default function (state:Store = initState, action:Action) {
//   switch(action.type){
//     case types.INCREMENT:
//       return {number: state.number + 1}
//     case types.DECREMENT:
//       return {number: state.number - 1}
//     default:
//       return state
//   }
// }
import {combineReducers} from 'redux' 
import counter1 from './counter1'
import counter2 from './counter2'
import home from './home'
import {connectRouter} from 'connected-react-router'
import session from './session'

// 将当前的路由信息写进仓库
import history from '../history'

 let reducers = combineReducers({
   counter1,
   counter2,
   home,
   router: connectRouter(history),
   session
   
 })

 export default reducers